<template>
    <div class="miao">
      <div class="head">
        <b>有品秒杀</b><a href="#">更多  > </a>
      </div>
      <div class="foot">
        <div class="b">
           <div class="box" v-for="(v,i) in this.$store.state.indexmiao.obj" :key="i">
          <img :src="v.image" />
          <span>￥<i>{{v.price}}</i> 起<em>{{v.pir}}</em></span>
        </div>
        </div>
       
      </div>
    </div>
</template>

<script>
export default {
  created() {
    this.$store.dispatch("miaosha");
  },
};
</script>

<style scoped>
.miao{
  width: 100%;
  height: 2rem;
  background-color: #fff;
  transform: translateY(-0.45rem);
  margin-top: 0.1rem;
  border-radius: 0.1rem;
   
}
.miao .head{
  width: 100%;
  height: 0.48rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
}
.miao .head b{
  font-size: 0.16rem;
  text-indent: 0.1rem;
}
.miao .head a{
  font-size: 0.12rem;
  color: #aeaeae;
  display: inline-block;
  transform: translateX(-0.1rem);
}
.miao .foot {
  width: 100%;
  height: 1.7rem;
  display: flex;
  align-items: center;
    overflow-x: auto;
    padding-top: 0.3rem;
    box-sizing: border-box;
}
::-webkit-scrollbar{
  display: none;
}
.miao .foot .b{
  width: 1.02rem;
    height: 1.02rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    
}

.miao .foot  .b .box{
  width: 1.02rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  
}
.miao .foot .b  .box img{
  width: 1.02rem;
  height: 1.02rem;
  display: block;
}
.miao .foot .b .box  span{
  font-size: 0.08rem;
  line-height: 0.22rem;
  color: red;
}
.miao .foot .b .box  span i{
    font-size: 0.12rem;
    color: red;
    font-style: normal;
}
.miao .foot .b .box  em{
    font-size: 0.08rem;
    color: #aeaeae;
    text-decoration: line-through;
}
</style>